﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BSChuangXu.Domain
{
    /// <summary>
    /// 创建人（共有所有基类的父类）
    /// </summary>
    public class UpdateModel
    {
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateName { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }= DateTime.Now;
        [NotMapped]
        public string Createtimes { get { return CreateTime.ToString("yyyy-MM-dd"); } }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UpdateTime { get; set; }


        /// <summary>
        /// 逻辑删除 false 未删  true 删除
        /// </summary>
        public bool IsDel { get; set; }
    }
}
